package cn.livingCloud.dto;

import cn.livingCloud.entity.content.ReplyRule;
import cn.livingCloud.wechat.protocol.MsgType;

import java.util.List;

/**
 * Created by sujiantang on 2015/12/9.
 */
public class ReplyRuleListDto extends Page<ReplyRuleDto> {
    private String keyWord;

    private MsgType msgType;

    public ReplyRuleListDto() {
    }

    @Override
    public void addAllList(List allRule) {
        for (Object item : allRule) {
            list.add(new ReplyRuleDto((ReplyRule) item));
        }
    }

    public MsgType[] getAllMsgType() {
        return MsgType.values();
    }

    public String getKeyWord() {
        return keyWord;
    }

    public void setKeyWord(String keyWord) {
        this.keyWord = keyWord;
    }

    public MsgType getMsgType() {
        return msgType;
    }

    public void setMsgType(MsgType msgType) {
        this.msgType = msgType;
    }
}
